/*
 * main.c
 *
 *  Created on: Apr 15, 2011
 *      Author: Andre
 */

#include <avr/io.h>
#include <util/delay.h>

void wait(uint16_t delay){
	uint16_t temp;

	while(delay){
		delay--;

		temp = 2000;
		while(temp){
			temp--;
			asm volatile ("nop");
		};

	}
}

int main(){
	DDRG |= 0x02;

	while(1){
		wait(1000);
		PORTG ^= 0x02;
	}
}
